← Back to issue list

Snapcraft go plugin install issues

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1612741
Type
issue
State
open
Author
~josvaz
Labels
Created
2016-08-12 17:05:35.373354+00:00
Updated
2016-08-25 08:04:04.535918+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

Trying to snap godoc I run into this golang bug: https://github.com/golang/go/issues/15106 Sample run: $ snapcraft Preparing to pull godoc Pulling godoc go get -t -d golang.org/x/tools/cmd/godoc Preparing to build godoc Building godoc go install golang.org/x/tools/cmd/godoc go install golang.org/x/tools/cmd/godoc: open /usr/lib/go-1.6/bin/godoc: permission denied Command '['/bin/sh', '/tmp/tmpws7rhnp0', 'go', 'install', 'golang.org/x/tools/cmd/godoc']' returned non-zero exit status 1 (See attached snapcraft.yaml) Basically godoc is special and go install tries to put it in $GOROOT/bin instead of $GOPATH/bin Even when when this is fixed in golang, snapcraft should NOT allow to install into $GOROOT or give the user a way out, like building without installing or forcing installation path within the snap environment.

Evaluation history

No evaluation history available.